#!win32:VERSION	= 0.6

SINGLEAPPLICATION_LIBNAME = singleapplication


TEMPLATE	= lib
LANGUAGE	= C++

CONFIG   +=  qt release warn_off staticlib

DEFINES		*= SINGLEAPPLICATION_BUILD




TARGET		= $$SINGLEAPPLICATION_LIBNAME


QT		-= gui

CONFIG		+= release
CONFIG		*= qt thread warn_on
CONFIG		-= exceptions rtti

DESTDIR	+= ../lib



BUILDDIR	= .build/
win32:BUILDDIR	= $$join(BUILDDIR,,,win32)
unix:BUILDDIR	= $$join(BUILDDIR,,,unix)
macx:BUILDDIR	= $$join(BUILDDIR,,,macx)

UI_DIR		= $${BUILDDIR}/ui
UIC_DIR		= $${BUILDDIR}/uic
MOC_DIR		= $${BUILDDIR}/moc
RCC_DIR		= $${BUILDDIR}/rcc
OBJECTS_DIR	= $${BUILDDIR}/obj



*-g++ {
	QMAKE_CFLAGS_DEBUG	= -O0 -g
	QMAKE_CXXFLAGS_DEBUG	= -O0 -g
	QMAKE_CFLAGS_RELEASE	= -O3 -fomit-frame-pointer -pipe
	QMAKE_CXXFLAGS_RELEASE	= -O3 -fomit-frame-pointer -pipe
}





DEPENDPATH	+= .
INCLUDEPATH	+= .

HEADERS		+= singleapplication.h \
		singleapplication_p.h \
		systemsemaphore.h \
		systemsemaphore_p.h

SOURCES		+= singleapplication.cpp \
		systemsemaphore.cpp

win32:SOURCES	+= systemsemaphore_win.cpp
unix:SOURCES	+= systemsemaphore_unix.cpp


